package com.example.treehole.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.treehole.bean.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    @Select("select count(*) from course where dayOfWeek = #{dayOfWeek} and classNumber = #{classNumber} and userid= #{userid}")
    int countByDayAndClass(int dayOfWeek, int classNumber, String userid);
}